<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    function load(url) {
        const script = document.createElement('script');
        script.onload = () => {
            console.log('资源加载完成');
        }
        script.src = url;
        script.async = true;
        document.head.appendChild(script);

    }

    const System = {
        register: (value1, value2) => {
            console.log('执行注册方法', value1, value2);
        }
    }

    load('./index.js');
</script>
</body>
</html>
